Use G_GNUC_CONST.
+2000-08-29 Elliot Lee <sopwith@redhat.com>
+ * */*.h: Use G_GNUC_CONST.
+
2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
+2000-08-29 Elliot Lee <sopwith@redhat.com>
+ * */*.h: Use G_GNUC_CONST.
+
2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
+2000-08-29 Elliot Lee <sopwith@redhat.com>
+ * */*.h: Use G_GNUC_CONST.
+
2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
+2000-08-29 Elliot Lee <sopwith@redhat.com>
+ * */*.h: Use G_GNUC_CONST.
+
2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
+2000-08-29 Elliot Lee <sopwith@redhat.com>
+ * */*.h: Use G_GNUC_CONST.
+
2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
+2000-08-29 Elliot Lee <sopwith@redhat.com>
+ * */*.h: Use G_GNUC_CONST.
+
2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
+2000-08-29 Elliot Lee <sopwith@redhat.com>
+ * */*.h: Use G_GNUC_CONST.
+
2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
};
-GtkType gdk_pixbuf_loader_get_type (void);
+GtkType gdk_pixbuf_loader_get_type (void) G_GNUC_CONST;
GdkPixbufLoader * gdk_pixbuf_loader_new (void);
GdkPixbufLoader * gdk_pixbuf_loader_new_with_type (const char *image_type);
gboolean gdk_pixbuf_loader_write (GdkPixbufLoader *loader,
\f
-GType gdk_pixbuf_get_type (void);
+GType gdk_pixbuf_get_type (void) G_GNUC_CONST;
/* Reference counting */
GDK_PIXBUF_FRAME_REVERT
} GdkPixbufFrameAction;
-GType gdk_pixbuf_animation_get_type (void);
+GType gdk_pixbuf_animation_get_type (void) G_GNUC_CONST;
GdkPixbufAnimation *gdk_pixbuf_animation_new_from_file (const char *filename);
};
-GtkType gnome_canvas_pixbuf_get_type (void);
+GtkType gnome_canvas_pixbuf_get_type (void) G_GNUC_CONST;
\f
void gdk_keyval_convert_case (guint symbol,
guint *lower,
guint *upper);
-guint gdk_keyval_to_upper (guint keyval);
-guint gdk_keyval_to_lower (guint keyval);
-gboolean gdk_keyval_is_upper (guint keyval);
-gboolean gdk_keyval_is_lower (guint keyval);
+guint gdk_keyval_to_upper (guint keyval) G_GNUC_CONST;
+guint gdk_keyval_to_lower (guint keyval) G_GNUC_CONST;
+gboolean gdk_keyval_is_upper (guint keyval) G_GNUC_CONST;
+gboolean gdk_keyval_is_lower (guint keyval) G_GNUC_CONST;
-guint32 gdk_keyval_to_unicode (guint keyval);
-guint gdk_unicode_to_keyval (guint32 wc);
+guint32 gdk_keyval_to_unicode (guint keyval) G_GNUC_CONST;
+guint gdk_unicode_to_keyval (guint32 wc) G_GNUC_CONST;
/* Threading
*/
};
-GType gdk_colormap_get_type (void);
+GType gdk_colormap_get_type (void) G_GNUC_CONST;
GdkColormap* gdk_colormap_new (GdkVisual *visual,
gboolean allocate);
/* Drag and Drop */
-GType gdk_drag_context_get_type (void);
+GType gdk_drag_context_get_type (void) G_GNUC_CONST;
GdkDragContext * gdk_drag_context_new (void);
void gdk_drag_context_ref (GdkDragContext *context);
void gdk_drag_context_unref (GdkDragContext *context);
};
-GType gdk_gc_get_type (void);
+GType gdk_gc_get_type (void) G_GNUC_CONST;
GdkGC *gdk_gc_new (GdkDrawable *drawable);
GdkGC *gdk_gc_new_with_values (GdkDrawable *drawable,
GdkGCValues *values,
GObjectClass parent_class;
};
-GType gdk_image_get_type (void);
+GType gdk_image_get_type (void) G_GNUC_CONST;
GdkImage* gdk_image_new_bitmap (GdkVisual *visual,
gpointer data,
gboolean foreign_destroy);
/* Implementation types */
-GType _gdk_window_impl_get_type (void);
-GType _gdk_pixmap_impl_get_type (void);
+GType _gdk_window_impl_get_type (void) G_GNUC_CONST;
+GType _gdk_pixmap_impl_get_type (void) G_GNUC_CONST;
/************************************
* Initialization and exit routines *
};
-GType gdk_pixmap_get_type (void);
+GType gdk_pixmap_get_type (void) G_GNUC_CONST;
/* Pixmaps
*/
GdkAtom gdk_atom_intern (const gchar *atom_name,
gboolean only_if_exists);
-gchar* gdk_atom_name (GdkAtom atom);
+gchar* gdk_atom_name (GdkAtom atom) G_GNUC_CONST;
gboolean gdk_property_get (GdkWindow *window,
GdkAtom property,
void gdk_rgb_init (void);
-gulong gdk_rgb_xpixel_from_rgb (guint32 rgb);
+gulong gdk_rgb_xpixel_from_rgb (guint32 rgb) G_GNUC_CONST;
void gdk_rgb_gc_set_foreground (GdkGC *gc,
guint32 rgb);
void gdk_rgb_gc_set_background (GdkGC *gc,
/* Windows
*/
-GType gdk_window_object_get_type (void);
+GType gdk_window_object_get_type (void) G_GNUC_CONST;
GdkWindow* gdk_window_new (GdkWindow *parent,
GdkWindowAttr *attributes,
gint attributes_mask);
GdkDrawableFBClass klass;
} GdkPixmapFBClass;
-GType gdk_drawable_impl_fb_get_type (void);
+GType gdk_drawable_impl_fb_get_type (void) G_GNUC_CONST;
typedef struct {
gulong length;
GdkGCClass parent_class;
} GdkGCFBClass;
-GType gdk_gc_fb_get_type (void);
-#if 0
-GdkGC * _gdk_fb_gc_new (GdkDrawable *drawable,
- GdkGCValues *values,
- GdkGCValuesMask values_mask);
-#endif
+GType gdk_gc_fb_get_type (void) G_GNUC_CONST;
/* Routines from gdkgeometry-fb.c */
int hbearing;
} PangoFBGlyphInfo;
-GType pango_fb_font_get_type (void);
+GType pango_fb_font_get_type (void) G_GNUC_CONST;
gboolean pango_fb_has_glyph(PangoFont *font, PangoGlyph glyph);
PangoGlyph pango_fb_get_unknown_glyph(PangoFont *font);
PangoFBGlyphInfo *pango_fb_font_get_glyph_info(PangoFont *font, PangoGlyph glyph);
};
-GtkType gdk_pixbuf_loader_get_type (void);
+GtkType gdk_pixbuf_loader_get_type (void) G_GNUC_CONST;
GdkPixbufLoader * gdk_pixbuf_loader_new (void);
GdkPixbufLoader * gdk_pixbuf_loader_new_with_type (const char *image_type);
gboolean gdk_pixbuf_loader_write (GdkPixbufLoader *loader,
/* Accelerators
*/
gboolean gtk_accelerator_valid (guint keyval,
- GdkModifierType modifiers);
+ GdkModifierType modifiers) G_GNUC_CONST;
void gtk_accelerator_parse (const gchar *accelerator,
guint *accelerator_key,
GdkModifierType *accelerator_mods);
};
-GtkType gtk_accel_label_get_type (void);
+GtkType gtk_accel_label_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_accel_label_new (const gchar *string);
guint gtk_accel_label_get_accel_width (GtkAccelLabel *accel_label);
void gtk_accel_label_set_accel_widget (GtkAccelLabel *accel_label,
};
-GtkType gtk_adjustment_get_type (void);
+GtkType gtk_adjustment_get_type (void) G_GNUC_CONST;
GtkObject* gtk_adjustment_new (gfloat value,
gfloat lower,
gfloat upper,
};
-GtkType gtk_alignment_get_type (void);
+GtkType gtk_alignment_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_alignment_new (gfloat xalign,
gfloat yalign,
gfloat xscale,
};
-GtkType gtk_arrow_get_type (void);
+GtkType gtk_arrow_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_arrow_new (GtkArrowType arrow_type,
GtkShadowType shadow_type);
void gtk_arrow_set (GtkArrow *arrow,
};
-GtkType gtk_aspect_frame_get_type (void);
+GtkType gtk_aspect_frame_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_aspect_frame_new (const gchar *label,
gfloat xalign,
gfloat yalign,
};
-GtkType gtk_button_box_get_type (void);
+GtkType gtk_button_box_get_type (void) G_GNUC_CONST;
void gtk_button_box_get_child_size_default (gint *min_width, gint *min_height);
void gtk_button_box_get_child_ipadding_default (gint *ipad_x, gint *ipad_y);
};
-GtkType gtk_bin_get_type (void);
+GtkType gtk_bin_get_type (void) G_GNUC_CONST;
#ifdef __cplusplus
};
-GtkType gtk_box_get_type (void);
+GtkType gtk_box_get_type (void) G_GNUC_CONST;
void gtk_box_pack_start (GtkBox *box,
GtkWidget *child,
gboolean expand,
};
-GtkType gtk_button_get_type (void);
+GtkType gtk_button_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_button_new (void);
GtkWidget* gtk_button_new_with_label (const gchar *label);
void gtk_button_pressed (GtkButton *button);
};
-GtkType gtk_calendar_get_type (void);
+GtkType gtk_calendar_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_calendar_new (void);
gint gtk_calendar_select_month (GtkCalendar *calendar,
};
-GtkType gtk_check_button_get_type (void);
+GtkType gtk_check_button_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_check_button_new (void);
GtkWidget* gtk_check_button_new_with_label (const gchar *label);
};
-GtkType gtk_check_menu_item_get_type (void);
+GtkType gtk_check_menu_item_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_check_menu_item_new (void);
GtkWidget* gtk_check_menu_item_new_with_label (const gchar *label);
void gtk_check_menu_item_set_active (GtkCheckMenuItem *check_menu_item,
} u;
};
-GtkType gtk_clist_get_type (void);
+GtkType gtk_clist_get_type (void) G_GNUC_CONST;
/* constructors useful for gtk-- wrappers */
void gtk_clist_construct (GtkCList *clist,
/* ColorSelection */
-GtkType gtk_color_selection_get_type (void);
+GtkType gtk_color_selection_get_type (void) G_GNUC_CONST;
GtkWidget * gtk_color_selection_new (void);
void gtk_color_selection_set_update_policy (GtkColorSelection *colorsel,
GtkUpdateType policy);
/* ColorSelectionDialog */
-GtkType gtk_color_selection_dialog_get_type (void);
+GtkType gtk_color_selection_dialog_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_color_selection_dialog_new (const gchar *title);
GtkHBoxClass parent_class;
};
-GtkType gtk_combo_get_type (void);
+GtkType gtk_combo_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_combo_new (void);
/* the text in the entry must be or not be in the list */
/* Application-level methods */
-GtkType gtk_container_get_type (void);
+GtkType gtk_container_get_type (void) G_GNUC_CONST;
void gtk_container_set_border_width (GtkContainer *container,
guint border_width);
void gtk_container_add (GtkContainer *container,
* Creation, insertion, deletion *
***********************************************************/
-GtkType gtk_ctree_get_type (void);
+GtkType gtk_ctree_get_type (void) G_GNUC_CONST;
void gtk_ctree_construct (GtkCTree *ctree,
gint columns,
gint tree_column,
};
-GtkType gtk_curve_get_type (void);
+GtkType gtk_curve_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_curve_new (void);
void gtk_curve_reset (GtkCurve *curve);
void gtk_curve_set_gamma (GtkCurve *curve, gfloat gamma);
};
-GtkType gtk_data_get_type (void);
+GtkType gtk_data_get_type (void) G_GNUC_CONST;
#ifdef __cplusplus
};
-GtkType gtk_dialog_get_type (void);
+GtkType gtk_dialog_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_dialog_new (void);
};
-GtkType gtk_drawing_area_get_type (void);
+GtkType gtk_drawing_area_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_drawing_area_new (void);
void gtk_drawing_area_size (GtkDrawingArea *darea,
gint width,
gint position);
};
-GtkType gtk_editable_get_type (void);
+GtkType gtk_editable_get_type (void) G_GNUC_CONST;
void gtk_editable_select_region (GtkEditable *editable,
gint start,
gint end);
GtkEditableClass parent_class;
};
-GtkType gtk_entry_get_type (void);
+GtkType gtk_entry_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_entry_new (void);
GtkWidget* gtk_entry_new_with_max_length (guint16 max);
void gtk_entry_set_text (GtkEntry *entry,
GtkBinClass parent_class;
};
-GtkType gtk_event_box_get_type (void);
+GtkType gtk_event_box_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_event_box_new (void);
#ifdef __cplusplus
};
-GtkType gtk_file_selection_get_type (void);
+GtkType gtk_file_selection_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_file_selection_new (const gchar *title);
void gtk_file_selection_set_filename (GtkFileSelection *filesel,
const gchar *filename);
};
-GtkType gtk_fixed_get_type (void);
+GtkType gtk_fixed_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_fixed_new (void);
void gtk_fixed_put (GtkFixed *fixed,
GtkWidget *widget,
* see the comments in the GtkFontSelectionDialog functions.
*****************************************************************************/
-GtkType gtk_font_selection_get_type (void);
+GtkType gtk_font_selection_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_font_selection_new (void);
gchar* gtk_font_selection_get_font_name (GtkFontSelection *fontsel);
GdkFont* gtk_font_selection_get_font (GtkFontSelection *fontsel);
* GtkFontSelection.
*****************************************************************************/
-GtkType gtk_font_selection_dialog_get_type (void);
+GtkType gtk_font_selection_dialog_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_font_selection_dialog_new (const gchar *title);
/* This returns the X Logical Font Description fontname, or NULL if no font
};
-GtkType gtk_frame_get_type (void);
+GtkType gtk_frame_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_frame_new (const gchar *label);
void gtk_frame_set_label (GtkFrame *frame,
const gchar *label);
};
-GtkType gtk_gamma_curve_get_type (void);
+GtkType gtk_gamma_curve_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_gamma_curve_new (void);
};
-GtkType gtk_handle_box_get_type (void);
+GtkType gtk_handle_box_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_handle_box_new (void);
void gtk_handle_box_set_shadow_type (GtkHandleBox *handle_box,
GtkShadowType type);
};
-GtkType gtk_hbutton_box_get_type (void);
+GtkType gtk_hbutton_box_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_hbutton_box_new (void);
/* buttons can be added by gtk_container_add() */
};
-GtkType gtk_hbox_get_type (void);
+GtkType gtk_hbox_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_hbox_new (gboolean homogeneous,
gint spacing);
GtkPanedClass parent_class;
};
-GtkType gtk_hpaned_get_type (void);
+GtkType gtk_hpaned_get_type (void) G_GNUC_CONST;
GtkWidget *gtk_hpaned_new (void);
#ifdef __cplusplus
};
-GtkType gtk_hruler_get_type (void);
+GtkType gtk_hruler_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_hruler_new (void);
};
-GtkType gtk_hscale_get_type (void);
+GtkType gtk_hscale_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_hscale_new (GtkAdjustment *adjustment);
};
-GtkType gtk_hscrollbar_get_type (void);
+GtkType gtk_hscrollbar_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_hscrollbar_new (GtkAdjustment *adjustment);
};
-GtkType gtk_hseparator_get_type (void);
+GtkType gtk_hseparator_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_hseparator_new (void);
};
-GtkType gtk_hsv_get_type (void);
+GtkType gtk_hsv_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_hsv_new (void);
void gtk_hsv_set_color (GtkHSV *hsv,
double h,
};
-GtkType gtk_image_get_type (void);
+GtkType gtk_image_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_image_new (GdkImage *val,
GdkBitmap *mask);
void gtk_image_set (GtkImage *image,
void (*focus_out) (GtkIMContext *context);
};
-GtkType gtk_im_context_get_type (void);
+GtkType gtk_im_context_get_type (void) G_GNUC_CONST;
void gtk_im_context_set_client_window (GtkIMContext *context,
GdkWindow *window);
GtkIMContextClass parent_class;
};
-GtkType gtk_im_context_simple_get_type (void);
+GtkType gtk_im_context_simple_get_type (void) G_GNUC_CONST;
GtkIMContext *gtk_im_context_simple_new (void);
#ifdef __cplusplus
GtkIMContextClass parent_class;
};
-GtkType gtk_im_multicontext_get_type (void);
+GtkType gtk_im_multicontext_get_type (void) G_GNUC_CONST;
GtkIMContext *gtk_im_multicontext_new (void);
#ifdef __cplusplus
};
-GtkType gtk_input_dialog_get_type (void);
+GtkType gtk_input_dialog_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_input_dialog_new (void);
GtkWidgetClass parent_class;
};
-GtkType gtk_invisible_get_type (void);
+GtkType gtk_invisible_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_invisible_new (void);
#ifdef __cplusplus
};
-GtkType gtk_item_get_type (void);
+GtkType gtk_item_get_type (void) G_GNUC_CONST;
void gtk_item_select (GtkItem *item);
void gtk_item_deselect (GtkItem *item);
void gtk_item_toggle (GtkItem *item);
};
-GtkType gtk_item_factory_get_type (void);
+GtkType gtk_item_factory_get_type (void) G_GNUC_CONST;
/* `container_type' must be of GTK_TYPE_MENU_BAR, GTK_TYPE_MENU,
* or GTK_TYPE_OPTION_MENU.
GtkMiscClass parent_class;
};
-GtkType gtk_label_get_type (void);
+GtkType gtk_label_get_type (void) G_GNUC_CONST;
GtkWidget *gtk_label_new (const char *str);
void gtk_label_set_text (GtkLabel *label,
const char *str);
GtkAdjustment *vadjustment);
};
-GtkType gtk_layout_get_type (void);
+GtkType gtk_layout_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_layout_new (GtkAdjustment *hadjustment,
GtkAdjustment *vadjustment);
void gtk_layout_put (GtkLayout *layout,
};
-GtkType gtk_list_get_type (void);
+GtkType gtk_list_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_list_new (void);
void gtk_list_insert_items (GtkList *list,
GList *items,
};
-GtkType gtk_list_item_get_type (void);
+GtkType gtk_list_item_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_list_item_new (void);
GtkWidget* gtk_list_item_new_with_label (const gchar *label);
void gtk_list_item_select (GtkListItem *list_item);
/* gtk_main_iteration() calls gtk_main_iteration_do(TRUE) */
gint gtk_main_iteration_do (gboolean blocking);
-gint gtk_true (void);
-gint gtk_false (void);
+gint gtk_true (void) G_GNUC_CONST;
+gint gtk_false (void) G_GNUC_CONST;
void gtk_grab_add (GtkWidget *widget);
GtkWidget* gtk_grab_get_current (void);
};
-GtkType gtk_menu_get_type (void);
+GtkType gtk_menu_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_menu_new (void);
/* Wrappers for the Menu Shell operations */
};
-GtkType gtk_menu_bar_get_type (void);
+GtkType gtk_menu_bar_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_menu_bar_new (void);
void gtk_menu_bar_append (GtkMenuBar *menu_bar,
GtkWidget *child);
};
-GtkType gtk_menu_item_get_type (void);
+GtkType gtk_menu_item_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_menu_item_new (void);
GtkWidget* gtk_menu_item_new_with_label (const gchar *label);
void gtk_menu_item_set_submenu (GtkMenuItem *menu_item,
};
-GtkType gtk_menu_shell_get_type (void);
+GtkType gtk_menu_shell_get_type (void) G_GNUC_CONST;
void gtk_menu_shell_append (GtkMenuShell *menu_shell,
GtkWidget *child);
void gtk_menu_shell_prepend (GtkMenuShell *menu_shell,
};
-GtkType gtk_misc_get_type (void);
+GtkType gtk_misc_get_type (void) G_GNUC_CONST;
void gtk_misc_set_alignment (GtkMisc *misc,
gfloat xalign,
gfloat yalign);
* Creation, insertion, deletion *
***********************************************************/
-GtkType gtk_notebook_get_type (void);
+GtkType gtk_notebook_get_type (void) G_GNUC_CONST;
GtkWidget * gtk_notebook_new (void);
void gtk_notebook_append_page (GtkNotebook *notebook,
GtkWidget *child,
/* Application-level methods */
-GtkType gtk_object_get_type (void);
+GtkType gtk_object_get_type (void) G_GNUC_CONST;
/* Append a user defined signal without default handler to a class. */
guint gtk_object_class_user_signal_new (GtkObjectClass *klass,
};
-GtkType gtk_option_menu_get_type (void);
+GtkType gtk_option_menu_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_option_menu_new (void);
GtkWidget* gtk_option_menu_get_menu (GtkOptionMenu *option_menu);
void gtk_option_menu_set_menu (GtkOptionMenu *option_menu,
};
-GtkType gtk_packer_get_type (void);
+GtkType gtk_packer_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_packer_new (void);
void gtk_packer_add_defaults (GtkPacker *packer,
GtkWidget *child,
};
-GtkType gtk_paned_get_type (void);
+GtkType gtk_paned_get_type (void) G_GNUC_CONST;
void gtk_paned_add1 (GtkPaned *paned,
GtkWidget *child);
void gtk_paned_add2 (GtkPaned *paned,
};
-GtkType gtk_pixmap_get_type (void);
+GtkType gtk_pixmap_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_pixmap_new (GdkPixmap *pixmap,
GdkBitmap *mask);
void gtk_pixmap_set (GtkPixmap *pixmap,
};
-GtkType gtk_plug_get_type (void);
+GtkType gtk_plug_get_type (void) G_GNUC_CONST;
void gtk_plug_construct (GtkPlug *plug, GdkNativeWindow socket_id);
GtkWidget* gtk_plug_new (GdkNativeWindow socket_id);
};
-GtkType gtk_preview_get_type (void);
+GtkType gtk_preview_get_type (void) G_GNUC_CONST;
void gtk_preview_uninit (void);
GtkWidget* gtk_preview_new (GtkPreviewType type);
void gtk_preview_size (GtkPreview *preview,
* directly.
*/
-GtkType gtk_progress_get_type (void);
+GtkType gtk_progress_get_type (void) G_GNUC_CONST;
void gtk_progress_set_show_text (GtkProgress *progress,
gint show_text);
void gtk_progress_set_text_alignment (GtkProgress *progress,
};
-GtkType gtk_progress_bar_get_type (void);
+GtkType gtk_progress_bar_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_progress_bar_new (void);
/*
};
-GtkType gtk_radio_button_get_type (void);
+GtkType gtk_radio_button_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_radio_button_new (GSList *group);
GtkWidget* gtk_radio_button_new_from_widget (GtkRadioButton *group);
GtkWidget* gtk_radio_button_new_with_label (GSList *group,
};
-GtkType gtk_radio_menu_item_get_type (void);
+GtkType gtk_radio_menu_item_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_radio_menu_item_new (GSList *group);
GtkWidget* gtk_radio_menu_item_new_with_label (GSList *group,
const gchar *label);
};
-GtkType gtk_range_get_type (void);
+GtkType gtk_range_get_type (void) G_GNUC_CONST;
GtkAdjustment* gtk_range_get_adjustment (GtkRange *range);
void gtk_range_set_update_policy (GtkRange *range,
GtkUpdateType policy);
void gtk_rc_add_class_style (GtkRcStyle *rc_style,
const gchar *pattern);
-GType gtk_rc_style_get_type (void);
+GType gtk_rc_style_get_type (void) G_GNUC_CONST;
GtkRcStyle* gtk_rc_style_new (void);
GtkRcStyle *gtk_rc_style_copy (GtkRcStyle *orig);
void gtk_rc_style_ref (GtkRcStyle *rc_style);
};
-GtkType gtk_ruler_get_type (void);
+GtkType gtk_ruler_get_type (void) G_GNUC_CONST;
void gtk_ruler_set_metric (GtkRuler *ruler,
GtkMetricType metric);
void gtk_ruler_set_range (GtkRuler *ruler,
void (* draw_value) (GtkScale *scale);
};
-GtkType gtk_scale_get_type (void);
+GtkType gtk_scale_get_type (void) G_GNUC_CONST;
void gtk_scale_set_digits (GtkScale *scale,
gint digits);
void gtk_scale_set_draw_value (GtkScale *scale,
};
-GtkType gtk_scrollbar_get_type (void);
+GtkType gtk_scrollbar_get_type (void) G_GNUC_CONST;
#ifdef __cplusplus
};
-GtkType gtk_scrolled_window_get_type (void);
+GtkType gtk_scrolled_window_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_scrolled_window_new (GtkAdjustment *hadjustment,
GtkAdjustment *vadjustment);
void gtk_scrolled_window_set_hadjustment (GtkScrolledWindow *scrolled_window,
};
-GtkType gtk_separator_get_type (void);
+GtkType gtk_separator_get_type (void) G_GNUC_CONST;
#ifdef __cplusplus
/* Application-level methods */
guint gtk_signal_lookup (const gchar *name,
GtkType object_type);
-gchar* gtk_signal_name (guint signal_id);
+gchar* gtk_signal_name (guint signal_id) G_GNUC_CONST;
guint gtk_signal_n_emissions (GtkObject *object,
guint signal_id);
guint gtk_signal_n_emissions_by_name (GtkObject *object,
GtkWidget* gtk_socket_new (void);
-GtkType gtk_socket_get_type (void);
+GtkType gtk_socket_get_type (void) G_GNUC_CONST;
void gtk_socket_steal (GtkSocket *socket,
GdkNativeWindow wid);
};
-GtkType gtk_spin_button_get_type (void);
+GtkType gtk_spin_button_get_type (void) G_GNUC_CONST;
void gtk_spin_button_configure (GtkSpinButton *spin_button,
GtkAdjustment *adjustment,
guint message_id;
};
-GtkType gtk_statusbar_get_type (void);
+GtkType gtk_statusbar_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_statusbar_new (void);
/* If you don't want to use contexts, 0 is a predefined global
* context_id you can pass to push/pop/remove
GtkOrientation orientation);
};
-GType gtk_style_get_type (void);
+GType gtk_style_get_type (void) G_GNUC_CONST;
GtkStyle* gtk_style_new (void);
GtkStyle* gtk_style_copy (GtkStyle *style);
GtkStyle* gtk_style_attach (GtkStyle *style,
};
-GtkType gtk_table_get_type (void);
+GtkType gtk_table_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_table_new (guint rows,
guint columns,
gboolean homogeneous);
};
-GtkType gtk_tearoff_menu_item_get_type (void);
+GtkType gtk_tearoff_menu_item_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_tearoff_menu_item_new (void);
#ifdef __cplusplus
};
-GtkType gtk_text_get_type (void);
+GtkType gtk_text_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_text_new (GtkAdjustment *hadj,
GtkAdjustment *vadj);
void gtk_text_set_editable (GtkText *text,
};
-GtkType gtk_text_buffer_get_type (void);
+GtkType gtk_text_buffer_get_type (void) G_GNUC_CONST;
extern PangoAttrType gtk_text_attr_appearance_type;
-GtkType gtk_text_layout_get_type (void);
+GtkType gtk_text_layout_get_type (void) G_GNUC_CONST;
GtkTextLayout *gtk_text_layout_new (void);
void gtk_text_layout_set_buffer (GtkTextLayout *layout,
const GtkTextIter *iter); /* location of event in buffer */
};
-GtkType gtk_text_tag_get_type (void);
+GtkType gtk_text_tag_get_type (void) G_GNUC_CONST;
GtkTextTag *gtk_text_tag_new (const gchar *name);
gint gtk_text_tag_get_priority (GtkTextTag *tag);
void gtk_text_tag_set_priority (GtkTextTag *tag,
void (* tag_removed) (GtkTextTagTable *table, GtkTextTag *tag);
};
-GtkType gtk_text_tag_table_get_type (void);
+GtkType gtk_text_tag_table_get_type (void) G_GNUC_CONST;
GtkTextTagTable *gtk_text_tag_table_new (void);
void gtk_text_tag_table_add (GtkTextTagTable *table,
GtkAdjustment *vadjustment);
};
-GtkType gtk_text_view_get_type (void);
+GtkType gtk_text_view_get_type (void) G_GNUC_CONST;
GtkWidget * gtk_text_view_new (void);
GtkWidget * gtk_text_view_new_with_buffer (GtkTextBuffer *buffer);
void gtk_text_view_set_buffer (GtkTextView *text_view,
/* --- prototypes --- */
-GtkType gtk_tips_query_get_type (void);
+GtkType gtk_tips_query_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_tips_query_new (void);
void gtk_tips_query_start_query (GtkTipsQuery *tips_query);
void gtk_tips_query_stop_query (GtkTipsQuery *tips_query);
};
-GtkType gtk_toggle_button_get_type (void);
+GtkType gtk_toggle_button_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_toggle_button_new (void);
GtkWidget* gtk_toggle_button_new_with_label (const gchar *label);
void gtk_toggle_button_set_mode (GtkToggleButton *toggle_button,
};
-GtkType gtk_toolbar_get_type (void);
+GtkType gtk_toolbar_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_toolbar_new (GtkOrientation orientation,
GtkToolbarStyle style);
GtkDataClass parent_class;
};
-GtkType gtk_tooltips_get_type (void);
+GtkType gtk_tooltips_get_type (void) G_GNUC_CONST;
GtkTooltips* gtk_tooltips_new (void);
void gtk_tooltips_enable (GtkTooltips *tooltips);
};
-GtkType gtk_tree_get_type (void);
+GtkType gtk_tree_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_tree_new (void);
void gtk_tree_append (GtkTree *tree,
GtkWidget *tree_item);
};
-GtkType gtk_tree_item_get_type (void);
+GtkType gtk_tree_item_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_tree_item_new (void);
GtkWidget* gtk_tree_item_new_with_label (const gchar *label);
void gtk_tree_item_set_subtree (GtkTreeItem *tree_item,
};
GtkType gtk_type_unique (GtkType parent_type,
const GtkTypeInfo *gtkinfo);
-gpointer gtk_type_class (GtkType type);
+gpointer gtk_type_class (GtkType type) G_GNUC_CONST;
gpointer gtk_type_new (GtkType type);
};
-GtkType gtk_vbutton_box_get_type (void);
+GtkType gtk_vbutton_box_get_type (void) G_GNUC_CONST;
GtkWidget *gtk_vbutton_box_new (void);
/* buttons can be added by gtk_container_add() */
};
-GtkType gtk_vbox_get_type (void);
+GtkType gtk_vbox_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_vbox_new (gboolean homogeneous,
gint spacing);
};
-GtkType gtk_viewport_get_type (void);
+GtkType gtk_viewport_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_viewport_new (GtkAdjustment *hadjustment,
GtkAdjustment *vadjustment);
GtkAdjustment* gtk_viewport_get_hadjustment (GtkViewport *viewport);
GtkPanedClass parent_class;
};
-GtkType gtk_vpaned_get_type (void);
+GtkType gtk_vpaned_get_type (void) G_GNUC_CONST;
GtkWidget *gtk_vpaned_new (void);
};
-GtkType gtk_vruler_get_type (void);
+GtkType gtk_vruler_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_vruler_new (void);
};
-GtkType gtk_vscale_get_type (void);
+GtkType gtk_vscale_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_vscale_new (GtkAdjustment *adjustment);
#endif /* __cplusplus */
-GtkType gtk_vscrollbar_get_type (void);
+GtkType gtk_vscrollbar_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_vscrollbar_new (GtkAdjustment *adjustment);
};
-GtkType gtk_vseparator_get_type (void);
+GtkType gtk_vseparator_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_vseparator_new (void);
GdkBitmap *shape_mask;
};
-GtkType gtk_widget_get_type (void);
+GtkType gtk_widget_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_widget_new (GtkType type,
const gchar *first_arg_name,
...);
};
-GtkType gtk_window_get_type (void);
+GtkType gtk_window_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_window_new (GtkWindowType type);
void gtk_window_set_title (GtkWindow *window,
const gchar *title);